package com.youlai.boot.factory.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import jakarta.validation.constraints.*;

/**
 * 服装尺码表单对象
 *
 * @author youlaitech
 * @since 2025-07-14 18:46
 */
@Getter
@Setter
@Schema(description = "服装尺码表单对象")
public class ClothingSizesForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Long id;

    @Schema(description = "尺码代码(如:XS,S,M,L,XL,XXL等)")
    @NotBlank(message = "尺码代码(如:XS,S,M,L,XL,XXL等)不能为空")
    @Size(max=20, message="尺码代码(如:XS,S,M,L,XL,XXL等)长度不能超过20个字符")
    private String sizeCode;

    @Schema(description = "尺码名称(可选)")
    @Size(max=50, message="尺码名称(可选)长度不能超过50个字符")
    private String sizeName;

    @Schema(description = "适用类别")
    @Size(max=2, message="适用类别长度不能超过2个字符")
    private String category;

    @Schema(description = "胸围(cm)")
    private BigDecimal chestWidth;

    @Schema(description = "腰围(cm)")
    private BigDecimal waistWidth;

    @Schema(description = "臀围(cm)")
    private BigDecimal hipWidth;

    @Schema(description = "适合最小身高(cm)")
    private BigDecimal minHeight;

    @Schema(description = "适合最大身高(cm)")
    private BigDecimal maxHeight;

    @Schema(description = "是否启用")
    private Integer isActive;

    @Schema(description = "显示顺序")
    private Integer displayOrder;

    @Schema(description = "创建人ID")
    private Long createBy;

    @Schema(description = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "修改人ID")
    private Long updateBy;

    @Schema(description = "更新时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;


}
